home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / pm / button.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  928 b   |  52 lines

  1. #ifndef _BUTTON_H_
  2. #define _BUTTON_H_
  3.  
  4. #ifndef _FACTORYWINDOW_H_
  5. #include <pm/FactoryWindow.h>
  6. #endif
  7.  
  8. #ifndef _COMMANDLIST_H_
  9. #include <pm/CommandList.h>
  10. #endif
  11.  
  12. @interface Button : FactoryWindow <Archiving>
  13. {
  14.   Command command;
  15. }
  16.  
  17. - initWithId: (ULONG) anId andFlags: (ULONG) flags in: (Window *) parent;
  18.  
  19. // methods for access to PM messages
  20. - clickdown;
  21. - clickup;
  22. - (USHORT) checked;
  23. - (BOOL) highlighted;
  24. - check;
  25. - checkIndeterminate;
  26. - uncheck;
  27.  
  28. - (char *) text: (char *) buffer;
  29. - setText: (char *) buffer;
  30.  
  31. - setTarget: aTarget;
  32. - setAction: (SEL) anAction;
  33.  
  34. - bindWith: anObject selector: (SEL) aSel;
  35.  
  36. - (MRESULT) handleMessage: (ULONG) msg
  37.             withParams: (MPARAM) mp1 and: (MPARAM) mp2;
  38.  
  39. /*
  40.  * Methods for protocol "Archiving"
  41.  */
  42.  
  43. - read: (TypedStream *) aStream;
  44. - write: (TypedStream *) aStream;
  45. - awake;
  46.  
  47. - createInPMWindow: (HWND) hwnd;
  48.  
  49. @end
  50.  
  51. #endif
  52.